package com.dp.springsourcecodeanalysis.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import lombok.extern.slf4j.Slf4j;

/**
 * Created by IntelliJ IDEA
 *
 * @author shala/沙拉
 * @date 2021/12/31 15:35
 */
@RestController
@Slf4j
@RequestMapping("/filter")
public class FilterController {

    @GetMapping("/pass")
    public String pass() {
        log.info("pass 业务方法");
        return "成功拦截器";
    }

    @GetMapping("/reject")
    public String reject() {
        log.info("reject 业务方法");
        return "拦截器";
    }
}
